﻿//-------------------------------------------------------------------------------
// <copyright file="FBStreamObject.cs" company="TaskyMedia LLC">
//     Copyright (c) TaskyMedia LLC.
// </copyright>
//-------------------------------------------------------------------------------

/*
 * Copyright (c) 2010, TaskyMedia LLC
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 *   Redistributions of source code must retain the above copyright notice, this 
 *     list of conditions and the following disclaimer.
 *   Redistributions in binary form must reproduce the above copyright notice, this
 *     list of conditions and the following disclaimer in the documentation and/or
 *     other materials provided with the distribution.
 *   Neither the name of TaskyMedia LLC nor the names of its contributors may be used
 *   to endorse or promote products derived from this software without specific prior
 *   written permission.
 *   
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
 * OF SUCH DAMAGE. 
 */

namespace FBGraphApi
{
    using System;

    /// <summary>
    /// Represents an object inside of a user's news feed or stream.
    /// </summary>
    public class FBStreamObject : FBObject
    {
        /// <summary>
        /// Gets the unique identifier of the stream object.
        /// </summary>
        /// <value>The unique identifier of the stream object.</value>
        [ObjectField("id")]
        public string Id
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the author of the stream object.
        /// </summary>
        /// <value>The author of the stream object.</value>
        [ObjectField("from")]
        public FBIdNameObject From
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the status message associated with the stream post.
        /// </summary>
        /// <value>The status message associated with the stream post.</value>
        [ObjectField("message")]
        public string Message
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the picture. <remarks>Do you get the picture?</remarks>
        /// </summary>
        /// <value>The picture.</value>
        [ObjectField("picture")]
        public string Picture
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the link associated with the stream object.
        /// </summary>
        /// <value>The link associated with the stream object.</value>
        [ObjectField("link")]
        public string Link
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the name of the stream post.
        /// </summary>
        /// <value>The name of the stream post.</value>
        [ObjectField("name")]
        public string Name
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the caption of the stream post.
        /// </summary>
        /// <value>The caption of the stream post.</value>
        [ObjectField("caption")]
        public string Caption
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the URL of the icon associated with the stream post.
        /// </summary>
        /// <value>The URL of the icon associated with the stream post.</value>
        [ObjectField("icon")]
        public string Icon
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the type of stream object.
        /// </summary>
        /// <value>The type of stream object.</value>
        [ObjectField("type")]
        public string Type
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets when the stream object was created.
        /// </summary>
        /// <value>When the stream object was created.</value>
        [ObjectField("created_time")]
        public DateTime CreatedTime
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets when the stream object was updated.
        /// </summary>
        /// <value>When the stream object was updated.</value>
        [ObjectField("updated_time")]
        public DateTime UpdatedTime
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the number of users who "liked" this stream object.
        /// </summary>
        /// <value>The number of users who "liked" this stream object.</value>
        [ObjectField("likes")]
        public int Likes
        {
            get;
            private set;
        }
    }
}
